package com.zsix.system.mapper.processDefinitionMapper;

import com.zsix.common.dto.controllerParams.EventClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EventClassMapper {
    /**
     * 获取事件列表
     * @param targetId
     * @return
     */
    List<EventClass> getEventClass(@Param("targetId") String targetId);

    /**
     * 设置事件
     * @param eventClassList
     * @return
     */
    int setEventClass(@Param("eventClassList") List<EventClass> eventClassList);

    /**
     * 删除事件
     * @param targetId
     * @return
     */
    int deleteEventClass(@Param("targetId") String targetId);
}
